package com.amoyt.project.domain.vo.data;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Date: 2025/8/28
 * @Time: 16:56
 * @Author: TQ_QT
 * @Description:
 */
@Schema(description = "贫困户数据统计")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PovertyDataVo implements Serializable{

    @Schema(description = "总贫困户数量")
    private Long totalHouseholdCount;

    @Schema(description = "总贫困人员数据详情")
    private Long totalPersonCount;

    @Schema(description = "贫困户数据列表")
    private List<LevelData> LevelDataList;

    // 添加贫困人员数据列表
    @Schema(description = "贫困人员数据列表")
    private List<personData> personDataList;

    // 各贫困户数据分析
    @Schema(description = "各等级贫困户数据详情")
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LevelData implements Serializable {
        private String povertyLevel;
        private Long LevelCount;
    }

    @Schema(description = "贫困人员数据详情")
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class personData implements Serializable{
        @Schema(description = "贫困类型")
        private String povertyType;
        @Schema(description = "贫困人数")
        private Long povertyPersonCount;
    }
}
